<?php

namespace oauth2server\controllers;

use common\components\Oauth2;
use Yii;
use yii\web\Controller;


class ClientController extends Controller{

    /**
     * 客户端列表
     */
    public function actionList(){

        $clients = Yii::$app->db->createCommand("SELECT c.* FROM {{%clients}} AS c")->queryAll();

        $data = [
            "clients" => $clients,
        ];

        return $this->renderPartial('list', $data);
    }


}
